<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="/resources/admin/view/main/header.jsp"/>
<!-- business code start -->
<style>
li {list-style-type:none;}
</style>
<form id="frm_activity" action="/luckeys/activity/addActivity" method="post" enctype="multipart/form-data" class="definewidth m20">
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">活动名称</td>
        <td><input type="text" name="activityName"/></td>
    </tr>
    <tr>
        <td class="tableleft">活动类型</td>
        <td>
        	<select name="activityTypeUuid" id="activityType_uuid">
			</select>
        </td>
    </tr>
    <tr>
        <td class="tableleft">城市</td>
        <td>
        	<select name="cityUuid" id="city_uuid">
			</select>
        </td>
    </tr>
    <tr>
        <td class="tableleft">活动地点</td>
        <td>
        	<select name="locationUuid" id="location_uuid">
			</select>
        </td>
    </tr>
    <tr>
        <td class="tableleft">众筹金额</td>
        <td><input type="text" name="totalPrice"/>元</td>
    </tr>
    <tr>
        <td class="tableleft">单注金额</td>
        <td><input type="text" name="unitPrice"/>元</td>
    </tr>
    <tr>
        <td class="tableleft">活动周期</td>
        <td><input type="text" name="activityDay"/>小时</td>
    </tr>
    <tr>
        <td class="tableleft">开始时间</td>
        <td><input type="text" id="start_date" name="startDate"/></td>
    </tr>
    <tr>
        <td class="tableleft">成功比例</td>
        <td><input type="text" name="chipsPercent" value="100"/>%</td>
    </tr>
    <tr>
        <td class="tableleft">中奖数</td>
        <td><input type="text" name="winSum" value="1"/></td>
    </tr>
    <tr>
        <td class="tableleft">中奖码</td>
        <td><input type="text" name="winCode"/></td>
    </tr>
    <tr>
        <td class="tableleft">活动描述</td>
        <td>
        	<textarea name="description" rows="" cols=""></textarea>
        </td>
    </tr>
    <tr>
        <td class="tableleft">活动图片</td>
        <td>
        	<ul id="myfiles">
        		<li><input type="file" name="myfiles"/><button type="button" class="btn btn-primary" onClick="addFile(this)">添加</button></li>
        	</ul>
        </td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <input type="submit" class="btn btn-primary" value="保存"/> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>
<!-- business code end -->

<jsp:include page="/resources/admin/view/main/footer.jsp"/>

<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="<%=request.getContextPath()%>/resources/admin/view/luckeys/activity/listActivity.jsp";
		 });

    });
</script>
<%-- <link href="<%=request.getContextPath()%>/resources/admin/js/frame/jquery/jQuery-selecttime-fm/css/admin.css" rel="stylesheet" /> --%>
<link href="<%=request.getContextPath()%>/resources/admin/js/frame/jquery/jQuery-selecttime-fm/css/jquery-ui.css" rel="stylesheet" />
<script src="<%=request.getContextPath()%>/resources/admin/js/frame/jquery/jQuery-selecttime-fm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="<%=request.getContextPath()%>/resources/admin/js/frame/jquery/jQuery-selecttime-fm/js/jquery.ui.datepicker-zh-CN.js"></script>
<script src="<%=request.getContextPath()%>/resources/admin/js/frame/jquery/jQuery-selecttime-fm/js/jquery-ui-timepicker-addon.js"></script>
<script src="<%=request.getContextPath()%>/resources/admin/js/frame/jquery/jQuery-selecttime-fm/js/jquery-ui-timepicker-zh-CN.js"></script>
<script src="<%=request.getContextPath()%>/resources/admin/js/business/luckeys/activity/activity.js"></script>
